package com.lesama.lambda.test;

public class LambdaTest2 {
    public static void main(String[] args) {
        useInterB(msg -> System.out.println("简化形式的lambda表达式" + msg));
    }
    public static void useInterB(InterB interB) {
        interB.print(" 嘿嘿嘿");
    }
}

interface InterB {
    void print(String msg);
}
